let ask = document.getElementsByClassName('ask');
[...ask].forEach(value => {
    value.addEventListener('click', function (event) {
        if (confirm('确定删除这条信息吗??')) {
            return true;
        } else {
            //阻止默认行为(默认行为是执行)
            event.preventDefault();
        }
    });
});